// 持久层
// 引入mongoose模块
const mongoose = require('mongoose');

let orderSchema = new mongoose.Schema({
  address:String, // 收货地址
  receiver:String, // 收货人
  telephone:String, // 收货电话
  date:String, // 订单时间
  status:String, // 订单状态
});

module.exports = mongoose.model('orderModel', orderSchema, 'orders');
